package cate.common.table.activity.worldboss;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass("基础配置")
public class WorldBossBaseRow extends ERow {

    @NoteField("配置ID")
    public int configTid;

    @NoteField("怪物实例")
    public String dynInsCode;

    @NoteField("固定奖励")
    public String fixRwdCode;

    @NoteField("奖励道具ID")
    public int rwdTid;

    @NoteField("奖励基础值")
    public int baseNum;

    @NoteField("奖励系数")
    public double coeff;

    @NoteField("奖励最大值")
    public int maxNum;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("配置ID", 0);
        this.configTid = xrw.getInteger("配置ID", 0);
        this.dynInsCode = xrw.getString("怪物实例");
        this.fixRwdCode = xrw.getString("固定奖励");
        this.rwdTid = xrw.getInteger("奖励道具ID",0);
        this.baseNum = xrw.getInteger("奖励基础值",0);
        this.coeff = xrw.getDouble("奖励系数",0d);
        this.maxNum = xrw.getInteger("奖励最大值",0);
    }
}
